﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FastPoster.Helpers
{
    #region Using
    using System.Xml;
    using System.IO;
    #endregion
    
    public static class XMLDataProvider
    {
        public static bool LoadDBInfo(string InputPath, ref string databaseName)
        {
            try
            {
                XmlDocument doc = new XmlDocument();
                doc.Load(InputPath);
                databaseName = doc.GetElementsByTagName("databasename")[0].InnerText;
                return true;
            }
            catch
            {
                return false;
            }
        }
    }
}
